const fs = require('fs')
fs.writeFile('./1.txt','写入内容',(err,data) => {
  if (err) throw err
  console.log(data);
})